package com.yjt.gcss.gddw.common.bean.domain;

/**
 * AbstractInfoSxxyId entity provides the base persistence definition of the
 * InfoSxxyId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractInfoSxxyId implements java.io.Serializable {

	// Fields

	private String orgId;
	private String userNo;
	private String tranType;

	// Constructors

	/** default constructor */
	public AbstractInfoSxxyId() {
	}

	/** full constructor */
	public AbstractInfoSxxyId(String orgId, String userNo, String tranType) {
		this.orgId = orgId;
		this.userNo = userNo;
		this.tranType = tranType;
	}

	// Property accessors

	public String getOrgId() {
		return this.orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getUserNo() {
		return this.userNo;
	}

	public void setUserNo(String userNo) {
		this.userNo = userNo;
	}

	public String getTranType() {
		return this.tranType;
	}

	public void setTranType(String tranType) {
		this.tranType = tranType;
	}

	@Override
	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractInfoSxxyId))
			return false;
		AbstractInfoSxxyId castOther = (AbstractInfoSxxyId) other;

		return ((this.getOrgId() == castOther.getOrgId()) || (this.getOrgId() != null
				&& castOther.getOrgId() != null && this.getOrgId().equals(
				castOther.getOrgId())))
				&& ((this.getUserNo() == castOther.getUserNo()) || (this
						.getUserNo() != null && castOther.getUserNo() != null && this
						.getUserNo().equals(castOther.getUserNo())))
				&& ((this.getTranType() == castOther.getTranType()) || (this
						.getTranType() != null
						&& castOther.getTranType() != null && this
						.getTranType().equals(castOther.getTranType())));
	}

	@Override
	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getOrgId() == null ? 0 : this.getOrgId().hashCode());
		result = 37 * result
				+ (getUserNo() == null ? 0 : this.getUserNo().hashCode());
		result = 37 * result
				+ (getTranType() == null ? 0 : this.getTranType().hashCode());
		return result;
	}

}